package com.itheima.dao;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMemberDao {
    /**
     * 根据手机号码查询会员用户
     * @param telephone
     * @return
     */
    @Select("select * from t_member where phoneNumber=#{telephone}")
    Member findByPhoneNumber(String telephone);

    /**
     * 添加会员
     * @param member1
     * @return
     */
    Integer add(Member member1);
}
